#pragma once

#include"Common.hpp"
#include<cstdint>

//父类
class Connection
{
public:

virtual void Recver()=0;
virtual void Send()=0;
int GetFd()
{
    return _sockfd;
}
uint32_t GetEvents()
{
    return _events;
}
void SetFd(int sockfd)
{
    _sockfd=sockfd;
}
void SetEvent(uint32_t  event)
{
    _events=event;
}
public:
int _sockfd;
// 关心事件
uint32_t  _events;

};